var fs=require('fs');


function yx (response,parms){
    response.writeHead(200,{'Content-Type':'application/json'});
    response.end(JSON.stringify(parms));

}
function home(response){
    response.writeHead(200,{'Content-Type':'text/html'});
    fs.createReadStream(__dirname+'/index.html','utf8').pipe(response);
}

module.exports={
    yx:yx,
    home:home
}